package com.yuer.zk;

import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeeper.Watcher;
import org.apache.zookeeper.ZooKeeper;

import java.io.IOException;

public class ZkTest  implements Watcher {

    public static void main(String[] args) {
        try {
            ZooKeeper zooKeeper = new ZooKeeper("10.211.55.4:2181", 5000, new
                    ZkTest()  );
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    @Override
    public void process(WatchedEvent watchedEvent) {

    }
}


